
env = Environment()
env[ 'CCFLAGS' ] = '-g -O2 -fPIC  -D_THREAD_SAFE -pthread'
env[ 'CPPPATH' ] = ['../include','../../include','../../../include','/home/s/include', ]
env[ 'CPPFLAGS' ] = []
env[ 'LIBPATH' ] = ['../lib','../../lib','../../../lib','/home/s/lib/static', ]
env[ 'LIBS' ] = ['fecab_packet','protobuf','db_cxx','boost_program_options-mt','boost_filesystem-mt', 'boost_system-mt', 'boost_thread-mt','z','pthread',]


libfile = env.StaticLibrary( 'confab_store', ['aucab.cpp','aubin.cpp','binindex.cpp','filecell.cpp','manager.cpp','cstore.cpp'] )
libfilename = str(libfile[0])

for libdir in ( '../lib', '../../lib' ) :
	env.Command( '%s/%s' % (libdir, libfilename), libfilename, Copy("$TARGET","$SOURCE") )

incdir = '../../include'
head_filename = 'store.hpp'
env.Command( '%s/confab/%s' % (incdir, head_filename), '../include/%s' % head_filename, Copy("$TARGET","$SOURCE") )

